package com.zh.mediaservice.service;

import com.zh.mediapojo.entity.Message;

import javax.websocket.Session;

public interface MessageService {
    void save(Message message1, boolean isUser);

    void saveToRedisWithUnreadMessages(Message message1, boolean isUser);

    boolean sendToUnreadMessages(String key, Session session) throws InterruptedException;
}
